package main

import (
	"davel-go/davel"
	"sync"
	"time"
	"fmt"
)

func main() {
	davelApp := davel.NewDavelApp()
	davelApp.Run()
}

func test()  {
	davelApp := davel.NewDavelApp()

	count := 0
	group := sync.WaitGroup{}
	start := time.Now()
	for count<20000 {
		group.Add(1)
		go func(count int) {
			defer group.Done()
			davelApp.DavelLog.Write("Test:"+davel.IntToStr(count))
		}(count)
		count++
	}
	group.Wait()
	fmt.Println("文件写入耗时：", time.Now().Sub(start).Seconds(), "s")
}